package com.wanxi.springboot;

import com.wanxi.springboot.dao.UserDao;
import com.wanxi.springboot.entity.UserEntity;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class UserTestEdit {
    @Autowired
    private UserDao userDao;
    @Test
    public void testEdit(){

       UserEntity userEntity=  UserEntity.builder()
                .age(18)
                .name("nikolas")
                .id(2)
                .build();
        userDao.edit(userEntity);
    }
}

